package com.zmn.mcc.cas.server;

import com.zmn.mcc.cas.CasConstants;

/**
 * @author quanjic
 * @version v1.0
 * @since 2019/5/8 17:30
 **/
public class CasServerConsts {

    //登录超时秒
    public static final int LOGIN_TIMEOUT_SEC = CasConstants.LOGIN_TIMEOUT_SEC;

    //登录超时毫秒
    public static final int LOGIN_TIMEOUT_MILL = LOGIN_TIMEOUT_SEC * 1000;

    /**
     * 登录失败次数锁；300秒
     */
    public static final int LOGIN_LOCK_TIMESPAN = 300;

    /**
     * 登录过期时间：86400秒
     */
    public static final int DEFAULT_EXPIRED = 86400;


    /**
     * 在线登录员工列表KEY
     */
    public static final String ONLINE_STAFF_KEY = CasConstants.ONLINE_STAFF_KEY;


    /**
     *
     */
    public static final String MC_AUTHORIZATION_STAFF = "cas:mc_authz_staff:";

    @Deprecated
    public static final String MC_LOGIN_FAIL_TIMES = "cas:mc_login_fail_times:";

    /**
     * 密码输入错误计数器 Key
     */
    public static final String CAS_PWD_ERROR_COUNTER_KEY = "cas:pwd_error:";


    public static final String MC_LOGIN_STAFF = "cas:mc_login_staff:";


    public final static String LOGIN_TIME_OUT_MSG = "登录超时";
    public final static String LOGIN_PWD_NULL_MSG = "密码不能为空！";
    public final static String LOGIN_ID_PWD_NULL_MSG = "账号或者密码不能为空！";


}
